/* CSS Reset */

/* 通用元素重置：清除边距、填充、边框，统一字体大小和垂直对齐 */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 新增元素的显示类型重置，确保在旧版浏览器中的一致性 */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

/* 文本行高重置，确保行间距一致 */
body {
  line-height: 1;
}

/* 列表样式重置，移除默认的项目符号和编号 */
ol,
ul {
  list-style: none;
}

/* 引用样式重置，移除引号样式 */
blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

/* 表格样式重置，移除单元格间的空隙 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 表单元素样式重置，继承父级字体样式 */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

/* 按钮样式重置，移除默认边框和背景 */
button,
input {
  overflow: visible;
}

button {
  border: none;
  background: none;
  padding: 0;
}

/* 文本框溢出处理 */
textarea {
  overflow: auto;
}

/* 选项组样式重置，确保粗体样式 */
optgroup {
  font-weight: bold;
}

/* 链接样式重置，移除下划线和颜色 */
a {
  text-decoration: none;
  color: inherit;
}

/* 图片样式重置，移除边框并设置最大宽度和自适应高度 */
img {
  border: 0;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* 嵌入内容样式重置，设置最大宽度 */
embed,
iframe,
object,
video {
  display: block;
  max-width: 100%;
}

/* 盒模型设置为 border-box，包含内边距和边框 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 焦点样式重置，移除默认的焦点轮廓 */
:focus {
  outline: none;
}

/* 清除浮动的辅助类 */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}